package org.aiforum.backend.service;

import org.aiforum.backend.common.Response;

/**
 * 验证码业务接口
 * @author Administrator
 *
 */
public interface VerificationCodeService {
    /**
     * 获取验证码
     * @param height
     * @param width
     * @return
     */
	Response getVerificationCode(int height,int width);
	
	/**
	 * 检查验证码是否正确
	 * @param code
	 * @return
	 */
	Response checkVerificaionCode(String code);
	
	/**
	 * 删除验证码
	 * @param code
	 * @return
	 */
	boolean removeVerificationCode(String code);
}
